/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-07-09 17:27:36
 * @LastEditTime: 2024-07-10 10:31:29
 * @FilePath: \project\src\api\acl\permission\type.ts
 */
export interface ResponseData {
  code: number,
  message: string,
  ok: boolean,
}

// 角色
export interface PermissionInfo {
  id?: number|string,
  createTime?: string,
  updateTime?: string,
  pid?: number,
  name: string,
  code: string,
  toCode?: string,
  type?: number,
  status?: string,
  level?: number,
  children?: PermissionInfo[],
  select?: boolean
}
export interface PermissionResponse extends ResponseData {
  data: PermissionInfo[],
}

// 菜单
export interface MenuInfo {
  id?: number|string,
  pid?: number,
  name: string,
  code: string,
  level: number,
}